package com.suns.service;

import com.github.pagehelper.PageInfo;
import com.suns.domain.User;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;

public interface UserService{
    User login(String tel,String pwd);

    User getBytel(String tel);
    User userlogin(String tel, String pwd);

    boolean sign(String tel, String pwd, String uType);

//    List<User> getAll();

    User getById(Integer id);

    PageInfo<User> getPageUsers(int pageNum, int pageSize,String keywords);

    boolean delUsers(List<Integer> ids);
    boolean updateUser(String tel,String name, String pwd, String newpwd);
    boolean addlicense(String tel, String carnumber, String carnumber1, String carnumber2, String carnumber3);
   boolean modifylicense(String tel,String ocarnumber1,String ocarnumber2,String ocarnumber3,String carnumber1, String carnumber2, String carnumber3);
    boolean deletelicense(String tel,String order1,String order2,String order3);
}
